genetic algorithm python example